<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>在线答题系统</title>
</head>
<body>
	<h1 align="center">在线答题系统</h1>
	<h3>欢迎 <?php 
		session_start();
	if(isset($_SESSION["user"]))
		echo $_SESSION["user"];
	 ?> 同学！</h3>
	 <?php 
	 	//var_dump($data['grade']);
	  ?>
	  <table align="center" border="1">
	  <tr>
	  	<th>测试编号</th>
	  	<th>准考证号</th>
	  	<th>提交时间</th>
	  	<th>总分</th>
	  </tr>
	  	<?php 
	  		foreach($data['grade'] as $row)
	  		{
	  			echo '<tr>';
	  			echo '<th>'.$row['gid'].'</th>';
	  			echo '<th>'.$row['sid'].'</th>';
	  			echo '<th>'.$row['totalime'].'</th>';
	  			echo '<th>'.$row['grade'].'</th>';
	  			echo '</tr>';
	  		}
	  		echo '</table>';
	  	 ?>
	  <h2><a href="index.php?c=index&m=start">返回</a></h2>

</body>
</html>